package cn.edu.hunau.java.week02.day05;

import org.junit.Test;

import java.util.Arrays;

public class EncoderTest {
    @Test
    public void TestEncoder() throws Exception{
        String s1="aaa建材竹猫";
        byte[] utf8Bytes=s1.getBytes("utf-8");
        System.out.println(Arrays.toString(utf8Bytes));
        byte[] gbkBytes=s1.getBytes("GBK");
        System.out.println(Arrays.toString(gbkBytes));
        byte[] defaultBytes=s1.getBytes();
        System.out.println(Arrays.toString(defaultBytes));
    }
}
